﻿#ifndef __TS_BASE_ENV_H__
#define __TS_BASE_ENV_H__

#include "protocol_interface.h"

class TppEnvBase {
public:
    TppEnvBase();

    virtual ~TppEnvBase();

    bool init(TPP_INIT_ARGS* args);

public:
    ex_wstr exec_path;
    ex_wstr etc_path;    // 配置文件、SSH服务器的私钥文件的存放路径
    ex_wstr replay_path;

    TPP_GET_CONNECT_INFO_FUNC get_connect_info;
    TPP_FREE_CONNECT_INFO_FUNC free_connect_info;
    TPP_SESSION_BEGIN_FUNC session_begin;
    TPP_SESSION_UPDATE_FUNC session_update;
    TPP_SESSION_END_FUNC session_end;

protected:
    virtual bool _on_init(TPP_INIT_ARGS* args) = 0;
};

#endif // __TS_BASE_ENV_H__
